/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.anny.moneystream.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.anny.moneystream.entity.AnnyMoneyStream;
import com.jeeplus.modules.anny.moneystream.mapper.AnnyMoneyStreamMapper;

/**
 * 账户金额交易表Service
 * @author linzx
 * @version 2018-10-17
 */
@Service
@Transactional(readOnly = true)
public class AnnyMoneyStreamService extends CrudService<AnnyMoneyStreamMapper, AnnyMoneyStream> {
@Autowired
private AnnyMoneyStreamMapper annyMoneyStreamMapper;
	public AnnyMoneyStream get(String id) {
		return super.get(id);
	}
	
	public List<AnnyMoneyStream> findList(AnnyMoneyStream annyMoneyStream) {
		return super.findList(annyMoneyStream);
	}
	
	public Page<AnnyMoneyStream> findPage(Page<AnnyMoneyStream> page, AnnyMoneyStream annyMoneyStream) {
		return super.findPage(page, annyMoneyStream);
	}
	
	@Transactional(readOnly = false)
	public void save(AnnyMoneyStream annyMoneyStream) {
		super.save(annyMoneyStream);
	}
	
	@Transactional(readOnly = false)
	public void delete(AnnyMoneyStream annyMoneyStream) {
		super.delete(annyMoneyStream);
	}

	/**
	 * 通过对应账户ID，查询整个金额流水表
	 * @param account
	 * @return
	 */
	public List<AnnyMoneyStream> getAccount(String account){

return  annyMoneyStreamMapper.getAccount(account);
}

}